package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.vo.ImageBizDetailVO;
import com.fdb.efp.nls.service.domain.ImageBizDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ImageBizDetailDao {

	public int insertImageBizDetail(ImageBizDetail imageBizDetail);

	public int deleteByPk(ImageBizDetail imageBizDetail);
	
	public int deleteByApplySeq(ImageBizDetail imageBizDetail);

	public int updateByPk(ImageBizDetail imageBizDetail);
	
	public int updateByApplySeqAndImageType(ImageBizDetail imageBizDetail);
	
	public int updateByCondition(ImageBizDetail imageBizDetail);

	public ImageBizDetail queryByPk(ImageBizDetail imageBizDetail);
	
	public List<ImageBizDetail> queryByApplySeqAndImageType(ImageBizDetailVO imageBizDetailVo);
	
	public List<ImageBizDetail> queryByCondition(ImageBizDetailVO imageBizDetailVo);

	public List<ImageBizDetail> queryAllOwnerByPage(ImageBizDetailVO imageBizDetail);

	public List<ImageBizDetail> queryAllCurrOrgByPage(ImageBizDetailVO imageBizDetail);

	public List<ImageBizDetail> queryAllCurrDownOrgByPage(ImageBizDetailVO imageBizDetail);

	/**
	 * 批量插入
	 * 
	 * @param list
	 * @return
	 */
	public int batchInsertImageBizDetail(@Param("list") List<ImageBizDetailVO> list);
    /**
     * 插入或更新影像业务明细: <br>
     *
     * 0.1:caoxin:2019/4/4 8:38: TODO: <br>
     * @author caoxin
     * @return
     * @since 2019/4/4 8:38
     * @date 2019/4/4 8:38
     * @version 0.1
     */

	int insertOrUpdateImageBizDetail(ImageBizDetailVO imageBizDetail);
	
	/**
	 * 
	 * 存量影像信息到影像文件信息有数据则更新，无则新增 <br>
	 * 0.1:weijj:2019年5月7日 下午2:37:18:新增 <br>
	 * 
	 * @author weijj
	 * @since 2019年6月4日 下午2:37:18
	 * @date 2019年6月4日 下午2:37:18
	 * @version 0.1
	 */
	public int insertOrUpdateImageBizDetailList(List<ImageBizDetail> list);
}
